{\rtf1\ansi\deff0\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fnil\fprq0\fcharset0 Courier New;}{\f3\froman\fprq2\fcharset0 Thorndale{\*\falt Times New Roman};}{\f4\fswiss\fprq2\fcharset0 Albany{\*\falt Arial};}{\f5\fnil\fprq2\fcharset0 Arial;}{\f6\fnil\fprq0\fcharset0 Times New Roman;}{\f7\fnil\fprq2\fcharset0 HG Mincho Light J{\*\falt msmincho};}{\f8\fnil\fprq2\fcharset0 Arial Unicode MS;}}
{\colortbl;\red0\green0\blue0;\red0\green0\blue128;\red136\green0\blue0;\red0\green136\blue0;\red255\green255\blue255;\red128\green128\blue128;}
{\stylesheet{\s1\li86\ri86\lin86\rin86\fi0\sb86\sa86\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033\snext1 Normal;}
{\s2\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af8\afs28\lang255\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\loch\f4\fs28\lang1033\sbasedon1\snext3 Heading;}
{\s3\li0\ri0\lin0\rin0\fi0\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033\sbasedon1\snext3 Body Text;}
{\s4\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033\sbasedon3\snext4 List;}
{\s5\li86\ri86\lin86\rin86\fi0\sb120\sa120\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ai\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\i\loch\f6\fs24\lang1033\i\sbasedon1\snext5 caption;}
{\s6\li86\ri86\lin86\rin86\fi0\sb86\sa86\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033\sbasedon1\snext6 Index;}
{\s7\li86\ri86\lin86\rin86\fi0\sa283\brdrb\brdrdb\brdrw15\brdrcf6\brsp0{\*\brdrb\brdlncol6\brdlnin1\brdlnout1\brdlndist20}\brsp0\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs12\lang1033\loch\f6\fs12\lang1033\sbasedon1\snext3 Horizontal Line;}
{\s8\li86\ri86\lin86\rin86\fi0\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\i\loch\f6\fs24\lang1033\i\sbasedon1\snext8 envelope return;}
{\s9\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033\sbasedon3\snext9 Table Contents;}
{\s10\li86\ri86\lin86\rin86\fi0\sb86\sa86\cf0{\*\tlswg8236}\tqc\tx4904{\*\tlswg8236}\tqr\tx9723{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033\sbasedon1\snext10 footer;}
{\s11\li86\ri86\lin86\rin86\fi0\sb86\sa86\cf0{\*\tlswg8236}\tqc\tx4904{\*\tlswg8236}\tqr\tx9723{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033\sbasedon1\snext11 header;}
{\s12\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af8\afs48\lang255\ab\ltrch\dbch\af7\langfe255\hich\f3\fs48\lang1033\b\loch\f3\fs48\lang1033\b\sbasedon2\snext3{\*\soutlvl0} heading 1;}
{\s13\li86\ri86\lin86\rin86\fi0\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033\sbasedon1\snext13 Preformatted Text;}
{\s14\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b\sbasedon2\snext3{\*\soutlvl2} heading 3;}
{\s15\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af6\afs24\lang255\ab\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\b\loch\f6\fs24\lang1033\b\sbasedon9\snext15 Table Heading;}
{\*\cs17\cf0\rtlch\af5\afs24\lang255\ltrch\dbch\af5\langfe255\hich\f0\fs24\lang1033\loch\f0\fs24\lang1033 Endnote Symbol;}
{\*\cs18\cf0\rtlch\af5\afs24\lang255\ltrch\dbch\af5\langfe255\hich\f0\fs24\lang1033\loch\f0\fs24\lang1033 Footnote Symbol;}
{\*\cs19\cf2\ul\ulc0\rtlch\af5\afs24\lang255\ltrch\dbch\af5\langfe255\hich\f0\fs24\lang1033\loch\f0\fs24\lang1033 Internet link;}
}
{\info{\title Object-OrientatedJavaScriptDocumentation}{\creatim\yr2009\mo4\dy22\hr3\min52}{\revtim\yr1601\mo1\dy1\hr0\min0}{\printim\yr1601\mo1\dy1\hr0\min0}{\comment StarWriter}{\vern6800}}\deftab709
{\*\pgdsctbl
{\pgdsc0\pgdscuse195\pgwsxn12240\pghsxn15840\marglsxn1800\margrsxn1800\margtsxn1440\margbsxn1440\pgdscnxt0 Standard;}
{\pgdsc1\pgdscuse195\pgwsxn12240\pghsxn15840\marglsxn1800\margrsxn1800\margtsxn1440\margbsxn1440\pgdscnxt1 Endnote;}
{\pgdsc2\pgdscuse195\pgwsxn12240\pghsxn15840\marglsxn1134\margrsxn567\margtsxn567\margbsxn567{\cbpat5}\pgdscnxt2 HTML;}}
{\*\pgdscno2}\paperh15840\paperw12240\margl1134\margr567\margt567\margb567\sectd\sbknone\pgwsxn12240\pghsxn15840\marglsxn1134\margrsxn567\margtsxn567\margbsxn567{\cbpat5}\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
\pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033{\rtlch \ltrch\loch\f6\fs24\lang1033\i\b0{\i Object-oriented JavaScript for the C++ programmer.}}{\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0  }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 {\*\bkmkstart more-9}{\*\bkmkend more-9}This article presents a bestiary of JavaScript constructs, set against their equivalent in C++. Most of the basic class and object tools are available in JavaScript, and the syntax is often recognisably similar. }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 C++ is listed first in {\cf3 maroon} followed by the corresponding JavaScript in {\cf4 dark green}. For simplicity, C++ methods are defined inline. }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 Source URL -------- http://blog.firetree.net/2005/06/16/object-orientated-javascript/ }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par \sect\sbknone\cols1\ltrsect
\pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b Global variable: }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global =0;}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b var}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global =0;}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b Global function definition: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 Note that the {\cf4 JavaScript} syntax for a function definition is the same as a class definition: }
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch   }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global{\i function({\b int} i, {\b int} j)}}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b\i{\b return}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i  0;}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i \}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf4{\rtlch \ltrch\loch   }}{\cf4{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b{\i{\b function}}}{\i{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0  global}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 function(i,j)}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  0;}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b Local variable: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 A local variable uses the same syntax as a global, but it is declared within a function\'92s scope. }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b void}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  f()}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  local =0;}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  f()}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b var}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  local =0;}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b Local static variable: }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  f()}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  {\b int} static{\i local=0;}}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0{\i static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 local++;}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  static{\i local;}}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i \}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b\i{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i  f()}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf4{\rtlch \ltrch\loch       }}{\cf4{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b{\i{\b if}}}{\i{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0 ({\b typeof} {\b this}.static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 local == \'91undefined\'92)}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf4{\rtlch \ltrch\loch           }}{\cf4{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b this}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 .static{\i local=0;}}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf4{\rtlch \ltrch\loch       }}{\cf4{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b{\i{\b this}}}{\i{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0 .static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 local++;}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  {\b this}.static_local;}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b Class definition: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 Note that the {\cf4 JavaScript} syntax for a class definition is the same as a function definition. Use it as a class definition by calling it with the new keyword to make a new object. }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \};}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C()}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b Create a new object: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 The new operator is crucial to object orientated {\cf4 JavaScript}. In this example, C can be called as a normal global function, but when called with new it becomes the constructor for a new Object. }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C* obj = {\b new} C();}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b var}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  obj = {\b new} C();}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b member variable - PUBLIC: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 The example includes a class constructor that initialises the member variable. }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b public}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m{\i public;}}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0{\i C({\b int} i): m}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 public(i) \{\}}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \};}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C(i)}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b this}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 .m_public = i;}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b member variable - PRIVATE: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 The example includes a class constructor that initialises the member variable. {\b I don\'92t recommend using this in JavaScript - it works for simple classes, but breaks down if you try to use inheritance (JavaScript prototypes).} }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m{\i private;}}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b\i{\b public}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i :}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0{\i C({\b int} i): m}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 private(i) \{\}}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \};}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C(i)}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b var}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m_private = i;}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b member variable - STATIC PUBLIC: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 The example initialises the variable and also includes a class constructor that uses the variable. }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b public}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  {\b int} m{\i static;}}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i C()}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i \{ }
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch           }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0{\i m}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 static++;}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \};}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b\cf3{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0\cf3  C::m{\i static =0;}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b\i{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i  C(i)}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf4{\rtlch \ltrch\loch       }}{\cf4{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0{\i C.m}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 static++;}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C.m_static =0;}
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b member function - PUBLIC: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 The example is an accessor function for a private member variable. }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m{\i private;}}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b\i{\b public}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i :}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0{\i C({\b int} i): m}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 private(i) \{\}}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf3{\rtlch \ltrch\loch       }}{\cf3{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  accessor() \{ {\b return} m{\i private; \}}}}
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i \};}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b\i{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i  C(i)}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0\i \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\cf4{\rtlch \ltrch\loch       }}{\cf4{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b{\i{\b var}}}{\i{\rtlch \ltrch\loch\f2\fs20\lang1033\i\b0  m}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 private = i;}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b this}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 .accessor = {\b function}() \{ {\b return} m_private; \}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b member function - PRIVATE: }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b private}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b void}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  implementation() \{\}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \};}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 // NO JAVASCRIPT EQUIVALENT}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b member function - STATIC PUBLIC: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 The example is a simple factory function. Since the JavaScript function is defined outside the class, you cannot access any static private functions that the class may contain. }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b public}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C() \{\}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C* factory() \{ {\b return} {\b new} C(); \}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \};}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C* obj = C::factory(); // called from outside}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C()}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C.factory = {\b function}() \{ {\b return} {\b new} C(); \}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b var}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  obj = C.factory(); // called from outside}
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b member function - STATIC PRIVATE: }
\par \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b0 In Internet Explorer\'92s JavaScript, nested functions are indeed private. Firefox and Safari allow you to call these functions from outside, but you must specify the fully scoped name (e.g. C.sum(1,2);). }
\par \pard\plain \ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b private}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  int sum({\b int} a, {\b int} b) \{ {\b return} a+b; \}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b public}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C() \{\}}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \};}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C()}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch       }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  sum(a, b) \{ {\b return} a+b; \}}
\par \pard\plain \ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch   }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\f4\fs28\b\f7\fs28\b\f8\fs28\b \ltrpar\s14\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sb240\sa283\keepn\rtlch\af8\afs28\lang255\ab\ltrch\dbch\af7\langfe255\hich\f4\fs28\lang1033\b\loch\f4\fs28\lang1033\b {\rtlch \ltrch\loch\f4\fs28\lang1033\i0\b Side-by-side Summary: }
\par \trowd\trql\trpaddft3\trpaddt58\trpaddfl3\trpaddl58\trpaddfb3\trpaddb58\trpaddfr3\trpaddr58\clbrdrt\brdrs\brdrw20\brdrcf1\clbrdrl\brdrs\brdrw20\brdrcf1\clbrdrb\brdrs\brdrw20\brdrcf1\cellx5268\clbrdrt\brdrs\brdrw20\brdrcf1\clbrdrl\brdrs\brdrw20\brdrcf1\clbrdrb\brdrs\brdrw20\brdrcf1\clbrdrr\brdrs\brdrw20\brdrcf1\cellx10537
\pard\intbl\pard\plain \intbl\ltrpar\s15\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\sa283\rtlch\af6\afs24\lang255\ab\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\b\loch\f6\fs24\lang1033\b {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b C++ }
\cell\pard\plain \intbl\ltrpar\s15\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\sa283\rtlch\af6\afs24\lang255\ab\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\b\loch\f6\fs24\lang1033\b {\rtlch \ltrch\loch\f6\fs24\lang1033\i0\b JavaScript }
\cell\row\pard \trowd\trql\trpaddft3\trpaddt58\trpaddfl3\trpaddl58\trpaddfb3\trpaddb58\trpaddfr3\trpaddr58\clbrdrl\brdrs\brdrw20\brdrcf1\clbrdrb\brdrs\brdrw20\brdrcf1\cellx5268\clbrdrl\brdrs\brdrw20\brdrcf1\clbrdrb\brdrs\brdrw20\brdrcf1\clbrdrr\brdrs\brdrw20\brdrcf1\cellx10537
\pard\intbl\pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global_variable =0;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global_function({\b int} i)}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 global_variable += i;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global_variable;     }
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b class}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b private}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m_private;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b public}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m_public;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  {\b int} m_static;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C({\b int} i, {\b int} j):}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 m_private(i),}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 m_public(j)}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 m_static++;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  accessor()}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m_private;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b private}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b void}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  implementation()}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b public}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 :}
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b static}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C* factory()}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return new}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C();}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \};}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf3{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b int}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C::m_static =0;}
\cell\pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b var}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global_variable =0;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global_function(i)}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 global_variable += i;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  global_variable;}
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C(i,j)}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 // (m_private not inheritable)}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b var}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m_private = i;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b this}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 .m_public = j;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C.m_static++}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b this}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 .accessor = {\b function}()}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  m_private;}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b function}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  implementation()}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \} // end of C}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C.factory = {\b function}()}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \{}
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b{\b return new}}{\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0  C();}
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 \}}
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 
\par \pard\plain \intbl\ltrpar\s13\cf4{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li86\ri86\lin86\rin86\fi0\sa283\rtlch\af2\afs20\lang255\ltrch\dbch\af2\langfe255\hich\f2\fs20\lang1033\loch\f2\fs20\lang1033 {\rtlch \ltrch\loch\f2\fs20\lang1033\i0\b0 C.m_static =0;}
\cell\row\pard \pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\sa283\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par \sect\sectd\sbknone\pgwsxn12240\pghsxn15840\marglsxn1134\margrsxn567\margtsxn567\margbsxn567{\cbpat5}
\pard\plain \ltrpar\s3\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li0\ri0\lin0\rin0\fi0\rtlch\af6\afs24\lang255\ltrch\dbch\af6\langfe255\hich\f6\fs24\lang1033\loch\f6\fs24\lang1033 
\par }